package com.ithuameng.admin.app.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色菜单关联表
 *
 * @author ithuameng
 */
@Data
@TableName("t_role_menu")
@EqualsAndHashCode(callSuper = false)
public class RoleMenu extends BaseId<Long> {

    private static final long serialVersionUID = 6273836538411254019L;

    public static final String ROLE_ID = "role_id";

    public static final String MENU_ID = "menu_id";

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色编号
     */
    private Long roleId;

    /**
     * 权限编号
     */
    private Long menuId;

    public RoleMenu() {
        super();
    }

    public RoleMenu(Long roleId, Long menuId) {
        super();
        this.roleId = roleId;
        this.menuId = menuId;
    }
}
